package com.xyh.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xyh.dao.UserMapper;
import com.xyh.po.User;
import com.xyh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author:kyle
 * @Date:2020/12/14 - 17:43
 * @Project:spring_demo1
 * @Package:com.xyh.service.impl
 * @Version:1.0
 */
@Component("userService")
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Resource
    private UserMapper userMapper;
    @Override
    public boolean insertUser(User user) {

        return userMapper.insert(user)>0?true:false;
    }
}
